﻿<UserControl x:Class="CCSManager.Products"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Height="Auto" Width="434" xmlns:my="http://schemas.microsoft.com/wpf/2008/toolkit">
    <Grid Width="Auto" Height="508">
        <TabControl Margin="12,44,12,283" Name="myInfoTabs">
            <TabItem Header="Applications" Name="appsTabItem" TabIndex="10">
                <Grid>
                    <my:DataGrid AutoGenerateColumns="False" Margin="0,0,1,0" Name="productDataGrid" VerticalContentAlignment="Stretch" SelectionChanged="productDataGrid_SelectionChanged">
                        <my:DataGrid.Columns>
                            <my:DataGridTextColumn Binding="{Binding Name}" Header="Name" IsReadOnly="True" Width="Auto" />
                            <my:DataGridTextColumn Binding="{Binding Version}" Header="Version" IsReadOnly="True" Width="Auto" />
                            <my:DataGridTextColumn Binding="{Binding TrialLengthInDays}" Header="Trial Length (Days)" IsReadOnly="True" Width="SizeToHeader" />
                            <my:DataGridTextColumn Binding="{Binding LicensesPerInvoice}" Header="Lic. Per Invoice" IsReadOnly="True" Width="SizeToHeader" />
                            <my:DataGridTextColumn Binding="{Binding Activations}" Header="Activations" IsReadOnly="True" Width="SizeToHeader" />
                            <my:DataGridTextColumn Binding="{Binding Exceptions}" Header="Exceptions" IsReadOnly="True" Width="SizeToHeader" />
                            <my:DataGridTextColumn Binding="{Binding Issues}" Header="Issues" IsReadOnly="True" Width="SizeToHeader" />
                            <my:DataGridTextColumn Binding="{Binding Registrations}" Header="Registrations" IsReadOnly="True" Width="SizeToHeader" />
                        </my:DataGrid.Columns>
                    </my:DataGrid>
                </Grid>
            </TabItem>
            <TabItem Header="Team" Name="devTokensTabItem" TabIndex="9">
                <Grid Height="Auto" Name="grid1">
                    <Label Height="28" Margin="5.622,4,0,0" Name="label9" VerticalAlignment="Top" HorizontalAlignment="Left" Width="Auto">Add Team Member:</Label>
                    <TextBox Height="23" Margin="166,6,40,0" Name="newTeamMemberEmailTextBox" VerticalAlignment="Top" />
                    <Button Height="23" HorizontalAlignment="Right" Margin="0,6,6,0" Name="addTeamMemberButton" VerticalAlignment="Top" Width="27.873" Click="addTeamMemberButton_Click">Add</Button>
                    <my:DataGrid Margin="6,35,6,6" Name="teamDataGrid" />
                    <Label Height="28" HorizontalAlignment="Left" Margin="122,4,0,0" Name="label10" VerticalAlignment="Top" Width="43.127">E-mail</Label>
                </Grid>
            </TabItem>
        </TabControl>
        <ComboBox Height="23" Margin="100,11,68,0" Name="activeTeamComboBox" VerticalAlignment="Top" SelectionChanged="activeTeamComboBox_SelectionChanged" Text="" DropDownClosed="activeTeamComboBox_DropDownClosed" DropDownOpened="activeTeamComboBox_DropDownOpened">
            <ComboBox.Items>
                <ComboBoxItem Content="Please select an active team" IsSelected="True"/>
            </ComboBox.Items>
        </ComboBox>
        <Label Height="28" HorizontalAlignment="Left" Margin="12,10,0,0" Name="activeTeamLabel" VerticalAlignment="Top" Width="82" FontWeight="Bold">Active Team</Label>
        <GroupBox Header="Add a New Application" Margin="11,0,13,12" Name="groupBox1" Padding="0" Height="265" VerticalAlignment="Bottom">
            <Grid Height="Auto">
                <Label Height="28" HorizontalAlignment="Left" Margin="6,40,0,0" Name="label1" VerticalAlignment="Top" Width="120">Application Name</Label>
                <TextBox Height="23" Margin="132,42,6,0" Name="appNameTextBox" TabIndex="0" VerticalAlignment="Top" />
                <Label Height="28" HorizontalAlignment="Left" Margin="6,74,0,0" Name="label2" VerticalAlignment="Top" Width="120">Version</Label>
                <TextBox GotFocus="majorVersionTextBox_GotFocus" Height="23" HorizontalAlignment="Left" HorizontalContentAlignment="Center" LostFocus="majorVersionTextBox_LostFocus" Margin="132,76,0,0" Name="majorVersionTextBox" TabIndex="1" TextChanged="majorVersionTextBox_TextChanged" ToolTip="Major Version" VerticalAlignment="Top" Width="28">0</TextBox>
                <Label Height="28" HorizontalAlignment="Left" Margin="6,108,0,0" Name="label3" VerticalAlignment="Top" Width="120">Release Date</Label>
                <Label HorizontalAlignment="Left" Margin="6,142,0,0" Name="label4" Width="120" Height="28.04" VerticalAlignment="Top">Licenses Per Invoice</Label>
                <TextBox GotFocus="licensesTextBox_GotFocus" HorizontalAlignment="Left" HorizontalContentAlignment="Center" LostFocus="licensesTextBox_LostFocus" Margin="132,144,0,0" Name="licensesTextBox" TabIndex="6" TextChanged="licensesTextBox_TextChanged" Width="28" Height="23.04" VerticalAlignment="Top">0</TextBox>
                <Label HorizontalAlignment="Left" Margin="6,173,0,0" Name="label5" Width="120" Height="28.04" VerticalAlignment="Top">Trial Length in Days</Label>
                <TextBox GotFocus="trialTextBox_GotFocus" HorizontalAlignment="Left" HorizontalContentAlignment="Center" LostFocus="trialTextBox_LostFocus" Margin="132,175,0,0" Name="trialTextBox" TabIndex="7" TextChanged="trialTextBox_TextChanged" Width="28" Height="23.04" VerticalAlignment="Top">0</TextBox>
                <my:DatePicker Height="24" Margin="132,109,0,0" Name="releaseDatePicker" TabIndex="5" VerticalAlignment="Top" HorizontalAlignment="Left" Width="113.01" />
                <TextBox GotFocus="minorVersionTextBox_GotFocus" Height="23" HorizontalContentAlignment="Center" LostFocus="minorVersionTextBox_LostFocus" Margin="173,76,0,0" Name="minorVersionTextBox" TabIndex="2" TextChanged="minorVersionTextBox_TextChanged" ToolTip="Minor Version" VerticalAlignment="Top" HorizontalAlignment="Left" Width="28">0</TextBox>
                <TextBox GotFocus="buildTextBox_GotFocus" Height="23" HorizontalAlignment="Left" HorizontalContentAlignment="Center" LostFocus="buildTextBox_LostFocus" Margin="213,76,0,0" Name="buildTextBox" TabIndex="3" TextChanged="buildTextBox_TextChanged" ToolTip="Build Number" VerticalAlignment="Top" Width="28">0</TextBox>
                <TextBox GotFocus="revisionTextBox_GotFocus" Height="23" HorizontalContentAlignment="Center" LostFocus="revisionTextBox_LostFocus" Margin="253,76,0,0" Name="revisionTextBox" TabIndex="4" TextChanged="revisionTextBox_TextChanged" ToolTip="Revision Number" VerticalAlignment="Top" HorizontalAlignment="Left" Width="27.23">0</TextBox>
                <Button Click="saveButton_Click" Height="23" HorizontalAlignment="Left" Margin="8,207.04,0,0" Name="saveButton" TabIndex="8" VerticalAlignment="Top" Width="93.893">Add Application</Button>
                <Label Height="28" HorizontalAlignment="Left" Margin="160,75,0,0" Name="label6" VerticalAlignment="Top" Width="13">.</Label>
                <Label Height="28" HorizontalAlignment="Left" Margin="200,75,0,0" Name="label7" VerticalAlignment="Top" Width="13">.</Label>
                <Label Height="28" HorizontalAlignment="Left" Margin="240,75,0,0" Name="label8" VerticalAlignment="Top" Width="13">.</Label>
                <Label Height="28" Margin="6,6,6,0" Name="teamLabel" VerticalAlignment="Top" ContentStringFormat="For Team {0}">(Please select a team from the Active Team list above)</Label>
            </Grid>
        </GroupBox>
        <Button Height="23" HorizontalAlignment="Right" Margin="0,11,13,0" Name="logoutButton" VerticalAlignment="Top" Width="48.937" Click="logoutButton_Click">Log Out</Button>
    </Grid>
</UserControl>
